<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>文件上传</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	

  </head>
  
  <body>
  	<!-- 
  		enctype="application/x-www-form-urlencoded" :默认值，用来处理少量文本数据的传递。
  		enctype="multipart/form-data" 用来处理二进制数据的传递。
  	 -->
  	<form action="uploadHandle.jsp" method="post" enctype="multipart/form-data">
  		<p>
  			上传者：<input type="text" name="uploader"/>
  		</p>
  		<p>
  			上传图片:<input type="file" name="file"/>
  		</p>
  		<p>
  			<input type="submit" value="提交" /> 
  		</p>
  	</form>
  </body>
</html>
